<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    var p = {
      s() {

      },
      v() {

      }
    }
    function People(name, age) {
      this.name = name
      this.age = age
    }
    People.prototype.say = function () {
      console.log('people');
    }
    class People2 {
      constructor(name, age) {
        this.name = name
        this.age = age
      }
      say() {
        console.log('people2');
      }
    }
    p1 = new People('张三', 12)
    p2 = new People2('李四', 13)
    console.log(p1);
    console.log(p2);
    People.say
  </script>
</body>

</html>